package org.domon.manager.model;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ResultObject<T> implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -307481394477587779L;

	/**
	 * 响应状态（返回异步请求结果时使用）
	 */
	private boolean success;

	/**
	 * 响应信息（返回异步请求结果时使用）
	 */
	private String msg;

	/**
	 * 响应结果
	 */
	private T result;

	/**
	 * 响应结果List
	 */
	private List<T> resultList;
	
	/**
	 * 响应结果数组
	 */
	private Object[] resultObj;
	
	/**
	 * 响应结果Map
	 */
	private Map<String, Object> resultMap = new HashMap<String, Object>();

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public T getResult() {
		return result;
	}

	public void setResult(T result) {
		this.result = result;
	}

	public List<T> getResultList() {
		return resultList;
	}

	public void setResultList(List<T> resultList) {
		this.resultList = resultList;
	}

	public Object[] getResultObj() {
		return resultObj;
	}

	public void setResultObj(Object[] resultObj) {
		this.resultObj = resultObj;
	}

	public Map<String, Object> getResultMap() {
		return resultMap;
	}

	public void setResultMap(Map<String, Object> resultMap) {
		this.resultMap = resultMap;
	}
}
